home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / ixemul-complete / ixemul / utils / makefile.in < prev    next >
Encoding:
Makefile  |  1996-08-18  |  3.2 KB  |  114 lines

  1. srcdir =    @srcdir@
  2. VPATH =        @srcdir@
  3.  
  4. prefix =    @prefix@
  5. exec_prefix =    @exec_prefix@
  6.  
  7. bindir =    $(exec_prefix)/bin
  8.  
  9. INSTALL =    @INSTALL@
  10. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  11. INSTALL_DATA =    @INSTALL_DATA@
  12.  
  13. SHELL =        /bin/sh
  14. CC =        @CC@
  15. RM =        rm
  16. DEFS =        @DEFS@
  17. LIBS =        @LIBS@
  18. CFLAGS =    @CFLAGS@
  19. LDFLAGS =    @LDFLAGS@
  20.  
  21. #### End system configuration section ####
  22.  
  23. INCLUDES =    -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../library -I$(srcdir)/../static -I.
  24. OUR_CFLAGS =    $(DEFS) $(INCLUDES) $(CFLAGS)
  25. OUR_LDFLAGS =    $(LDFLAGS) -B../libsrc/ -L../libsrc
  26.  
  27. DATABASES =    africa antarctica asia australasia europe northamerica southamerica \
  28.         pacificnew etcetera backward systemv solar87 solar88 solar89
  29.  
  30. IXPREFS_OBJ =    ixprefs.o main.o cli.o functions.o
  31.  
  32. # Taken from the tzcode95g.tar.gz Makefile:
  33. #
  34. # If you want something other than Eastern United States time as a template
  35. # for handling POSIX-style time zone environment variables,
  36. # change the line below (after finding the zone you want in the
  37. # time zone files, or adding it to a time zone file).
  38. # (When a POSIX-style environment variable is handled, the rules in the template
  39. # file are used to determine "spring forward" and "fall back" days and
  40. # times; the environment variable itself specifies GMT offsets of standard and
  41. # summer time.)
  42. # Alternately, if you discover you've got the wrong time zone, you can just
  43. #    zic -p rightzone
  44. # to correct things.
  45. # If you want POSIX compatibility, use "America/New_York".
  46.  
  47. POSIXRULES =    America/New_York
  48.  
  49. .c.o:
  50.         $(CC) -c $(OUR_CFLAGS) $<
  51.  
  52. all :        ixprefs ixtrace ixrun ixtimezone ixpipe-handler zoneinfo/GMT
  53.  
  54. ixprefs :    $(IXPREFS_OBJ) getopt.o getopt1.o
  55.         $(CC) $(OUR_LDFLAGS) -o $@ $^ -lauto
  56.  
  57. ixprefs.o:    ixprefs.c
  58.         sed -e '/clib/d' \
  59.             -e 's/pragmas/proto/' \
  60.             -e 's/_pragmas//' \
  61.             -e 's/    (TAG_DONE)/    (GTCB_Scaled), TRUE, (TAG_DONE)/' \
  62.             -e 's/OpenDiskFont/OpenFont/' \
  63.             -e 's/CreateMenus( ixprefsNewMenu, GTMN_FrontPen, 0L, TAG_DONE )/CreateMenusA( ixprefsNewMenu, NULL )/' \
  64.             -e 's/LayoutMenus( ixprefsMenus, VisualInfo, TAG_DONE )/LayoutMenus( ixprefsMenus, VisualInfo, GTMN_NewLookMenus, TRUE, TAG_DONE )/' \
  65.             -e 's/WA_PubScreenFallBack,    TRUE/WA_PubScreenFallBack,    TRUE, WA_NewLookMenus,    TRUE/' \
  66.             <$^ >tmp_ixprefs.c
  67.         $(CC) -c $(OUR_CFLAGS) -o $@ tmp_ixprefs.c
  68.         rm -f tmp_ixprefs.c
  69.  
  70. functions.o:    version.h ../library/ixemul.h
  71.  
  72. ixtrace :    ixtrace.o getopt.o
  73.         $(CC) $(OUR_LDFLAGS) -o $@ $^ $(LIBS)
  74.  
  75. ixrun:        ixrun.o
  76.         $(CC) $(OUR_LDFLAGS) -o $@ $^ $(LIBS)
  77.  
  78. ixtimezone:    ixtimezone.o
  79.         $(CC) $(OUR_LDFLAGS) -o $@ $^ $(LIBS)
  80.  
  81. ixpipe-handler:    ixpipe-handler.o
  82.         $(CC) -nostdlib -o $@ $? -lc
  83.  
  84. zic:        zic.o ialloc.o scheck.o getopt.o
  85.         $(CC) -o $@ $^ $(LIBS)
  86.  
  87. yearistype:    yearistype.sh
  88.         rm -f $@
  89.         cp $^ $@
  90.         chmod +x $@
  91.  
  92. zoneinfo/GMT:    zic yearistype
  93.         rm -rf zoneinfo
  94.         mkdir zoneinfo
  95.         rootme=`pwd` ; cd $(srcdir)/databases ; \
  96.         $$rootme/zic -d $$rootme/zoneinfo -y "sh $$rootme/yearistype" -p $(POSIXRULES) $(DATABASES)
  97.  
  98. version.h:    ../library/parse_version.c ../version.in
  99.         gcc -o parse_version $<
  100.         ./parse_version $(srcdir)
  101.         rm -f parse_version version.c
  102.  
  103. #
  104. #    Clean up the local directory.
  105. #
  106.  
  107. clean :
  108.         rm -f *.o ixtrace ixprefs ixrun ixtimezone
  109.         rm -f zic yearistype ixpipe-handler tmp_ixprefs.c
  110.         rm -rf zoneinfo
  111.  
  112. clobber :    clean
  113.         $(RM) -f Makefile version.h
  114.